home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19980424-19980901
/
000241_news@newsmaster….columbia.edu _Thu Jul 2 17:49:42 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id RAA20286
for <kermit.misc@watsun.cc.columbia.edu>; Thu, 2 Jul 1998 17:49:41 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id RAA03785
for kermit.misc@watsun; Thu, 2 Jul 1998 17:49:40 -0400 (EDT)
Path: news.columbia.edu!panix!howland.erols.net!newsfeed.wli.net!su-news-hub1.bbnplanet.com!news.bbnplanet.com!news1.best.com!vnetnews.value.net!not-for-mail
From: Mark Sapiro <msapiro@value.net>
Newsgroups: comp.protocols.kermit,comp.protocols.kermit.misc
Subject: Re: script w/ telnet
Followup-To: comp.protocols.kermit.misc
Date: Thu, 02 Jul 1998 14:41:41 -0700
Organization: Seldom Very Much
Lines: 32
Message-ID: <359BFE95.3C09@value.net>
References: <359A9A8F.E6F8DB09@shifted-bytes.de>
Reply-To: Mark Sapiro <msapiro@value.net>
NNTP-Posting-Host: d32-ts03.wci.value.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01 (Win95; I)
To: Michael Agbaglo <byteshifter@shifted-bytes.de>
Xref: news.columbia.edu comp.protocols.kermit.misc:8938
Michael Agbaglo wrote to comp.protocols.kermit:
>
> How do I make kermit to continue w/ the script after establishing a link
> w/ telnet ?
>
> e.g.
>
> telnet mail 25
> script foo bar
>
> kermit stops after executing the 1st line ...
I am cross posting this reply to comp.protocols.kermit.misc which is
where I think it belongs.
The telnet command enters connect mode if successful. Script execution
is suspended in connect mode until the user returns to command mode.
Thus what you really want is:
set network tcp/ip
if failure end 1 tcp/ip network not supported
set host mail 25
if failure end 1 can't open host: mail 25
;
; continue script here using 'input' and 'output' commands to
communicate
; with host...
; only 'connect' if you really mean it.
--
Mark Sapiro <msapiro@value.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan